package com.decent.ejfadmin.finance.service;

import com.decent.ejfadmin.common.bean.MessageBean;
import com.decent.ejfadmin.common.bean.Page;
import com.decent.ejfadmin.common.enums.UserAddMoneyTypeEnum;
import com.decent.ejfadmin.finance.request.SupplyCardBalanceParam;
import com.decent.ejfadmin.finance.request.SupplyCardDetailParam;

import javax.servlet.http.HttpServletResponse;

/**
 * @author zhangchao
 * @date 2018/7/28 8:45
 */
public interface SupplyCardService {

    /**
     * 查询销卡明细分页数据
     *
     * @param param
     * @return
     */
    Page findSupplyCardDetailPage(SupplyCardDetailParam param);

    /**
     * 查询销卡余额分页数据
     *
     * @param param
     * @return
     */
    Page findSupplyCardBalancePage(SupplyCardBalanceParam param);

    /**
     * 会员销卡明细导出
     *
     * @param param
     * @param response
     * @return
     */
    void supplyCardDetailDownLoad(SupplyCardDetailParam param, HttpServletResponse response);
    /**
     * 会员销卡余额导出
     *
     * @param param
     * @param response
     * @return
     */
    void supplyCardBalanceDownLoad(SupplyCardBalanceParam param, HttpServletResponse response);

    /**
     * 收卡批量返佣
     *
     * @param data    源数据
     * @param addType 加款类型
     * @return MessageBean
     */
    MessageBean newBatchSubmitUserAddMoneyApply(String data, UserAddMoneyTypeEnum addType);
}
